#ifndef XMLFORM_H
#define XMLFORM_H



#include "Campaign.h"



#include <QWidget>
#include <QPointer>


namespace Ui {
    class XmlForm;
}

class XmlForm : public QWidget
{
    Q_OBJECT

public:
    explicit XmlForm(QWidget *parent = 0);
    ~XmlForm();

    void setCampaign(Campaign* c);
    Campaign* campaign() const;


protected slots:

    void onChanged();


private:

    Ui::XmlForm *ui;

    QPointer<Campaign> m_campaign;

private slots:
    void on_updateButton_clicked();
    void on_pushButton_clicked();
};

#endif // XMLFORM_H
